﻿<%@ Page Language="C#" MasterPageFile="~/admin/MasterPageAdmin.master"  AutoEventWireup="true" CodeFile="ManageInventory.aspx.cs" Inherits="admin_ManageInventory" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="contentContainer page_un" style="padding-top:20px;">
                    <div class="contentPadd un">
                        <div class="prods_content prods_table">
<form runat=server id="manageproduct">

     <asp:GridView ID="grdInventory" runat="server" AllowPaging="True" 
        DataKeyNames="Inv_ID" Width="100%" 
        AutoGenerateColumns="False" 
         onpageindexchanging="grdInventory_PageIndexChanging" PageSize="5" 
         onrowcommand="grdInventory_RowCommand" BorderColor="#CCCCCC" 
         BorderStyle="Solid" BorderWidth="3px" EditIndex="0" >
         <RowStyle HorizontalAlign="Center" />
        <Columns>
            <asp:TemplateField HeaderText="Tùy chọn">
                <HeaderStyle BackColor="#D4D4D4" ForeColor="#888888" HorizontalAlign="Center" 
                    VerticalAlign="Middle" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
					    <ItemTemplate>
						    <asp:CheckBox ID="chkCheck" runat="server" />                               
					    </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Người nhận">
                <HeaderStyle BackColor="#D4D4D4" ForeColor="#888888" HorizontalAlign="Center" 
                    VerticalAlign="Middle" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
					    <ItemTemplate>
						    <a href='<%# "EditInventory.aspx?Invetory_ID=" + Eval("Inv_ID") %>'>
						    <asp:Label ID="Inv_UserRevice" runat="Server" Text='<%#Eval("Inv_UserRevice") %>'></asp:Label>
						    </a>
					    </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Tổng giá">
                <HeaderStyle BackColor="#D4D4D4" ForeColor="#888888" HorizontalAlign="Center" 
                    VerticalAlign="Middle" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
					    <ItemTemplate>
					       
						        <asp:Label ID="Product_Pro_Name" runat="Server" Text='<%#Eval("Inv_TotalPrice") %>'></asp:Label>
						   
					    </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Ngày tạo">
                 <HeaderStyle BackColor="#D4D4D4" ForeColor="#888888" HorizontalAlign="Center" 
                     VerticalAlign="Middle" />
                 <ItemStyle  HorizontalAlign="Center" VerticalAlign="Middle"/>
					    <ItemTemplate>
						    <asp:Label ID="Product_Pro_PriceUSD" runat="Server" Text='<%#Eval("Inv_CreateDate") %>'></asp:Label>
					    </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <ControlStyle Height="16px" Width="16px" />
                <HeaderStyle BackColor="#D4D4D4" ForeColor="#888888" HorizontalAlign="Center" 
                    VerticalAlign="Middle" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="True" />
					    <HeaderTemplate>
					    <asp:Label ID="Label3" runat="server" Text="Chức năng" ></asp:Label>                   
					    </HeaderTemplate>
					    <ItemTemplate>                                
						    <asp:HyperLink ID="lnkEdit" runat="server" Font-Bold="true" NavigateUrl='<%# "EditInventory.aspx?Invetory_ID=" + Eval("Inv_ID") %>'>
							    <asp:Image ID="ImageEdit" ToolTip="Sửa thông tin" runat="server" ImageUrl="~/images/edit.PNG" />
						    </asp:HyperLink>                                
						     <asp:ImageButton ID="btnDelete" CommandArgument='<%# Eval("Inv_ID") %>' CommandName="delete_Inventory"  ImageUrl="~/images/drop-no.gif" runat="server"  
						    />                                              
    						 
					    </ItemTemplate>
					    <ItemStyle Wrap="False" />
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
</form>
</div>
</div>
</div>
</asp:Content>